<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:if test="${type=='CLIENT'}"><c:set var="estType" value="客户" /></c:if>
<c:if test="${type=='COOPERATOR'}"><c:set var="estType" value="外协商" /></c:if>
<c:if test="${type=='PROVIDER'}"><c:set var="estType" value="供应商" /></c:if>
<c:set var="pageTitle" value="${estType}修改帐套" />
<%@ include file="../inc/Title.jsp"%>
<head>
<link rel="stylesheet" type="text/css" href="/css/base.css" />
<script src="/js/popup_ext.js"></script>
<script language="javascript">
	function doOk(){
		var tsId=document.getElementById("ts_id").value;
		if(tsId==null || tsId=='' || tsId=="0"){
			ShowAlert('提示框','请选择帐套名称',200,100);
			return;
		}
		ShowConfirm('确认框','确定修改${estType}帐套吗？',340,80,"doOkCallBack("+tsId+")");
	}
	function doOkCallBack(tsId){
		if(popRetVal!=null){
			window.location="/base/EstablishmentChangeTs.ihtm?id_str=${idStr}&ts_id="+tsId;
		}
	}
	function doCancel(){
		parent.ClosePop();
	}
	function doInit(){
		showFormErrorMsg();
	}
</script>
</head>
<body oncontextmenu="return false" onload="doInit();" class="sheet modal-dialog" style="padding-top:10px;text-align:left;">
<div class="sheet-main" id="bodyDiv" style="width:325px;">
	  <div class="sheet-list" style="width:100%">
	    <div class="modal-main search-business">
	   		<div style="width:100%;">
				<c:set var="pageTopTitle" value="${estType}修改帐套" />
				<c:set var="pageTopMark" value="" />
				<%@ include file="../inc/PageTop.jsp"%>
				<table border="0" cellspacing="1" cellpadding="1" align="center" class="table-a">
						<tr>
							<th>帐套名称：</th>
							<td>
								<select name="ts_id" id="ts_id">
									<c:forEach var="item" items="${tsList}">
									<option value="${item.id}">${item.title}</option>
									</c:forEach>
					  			</select>
							</td>
						</tr>	
				</table>
			</div>
	  	</div>
	  </div>
		<div class="modal-buttom">
			<input type="button" class="buttom-a" value=" 确 定 " onClick="doOk();">
			<input type="button" class="buttom-a" value=" 取 消 " onClick="doCancel();">
		</div>
</div>			   	
</body>
</html>